<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

	
	
	
	<h:head>
	
</h:head>

<h:body>



<p:tabMenu activeIndex="0">  
    <p:menuitem value="MODIFY FLIGHTS" url="http://localhost:8080/TravelDreamWeb/createFlight.xhtml" icon="ui-icon-search"/>  
    <p:menuitem value="MODIFY HOTELS" url="http://localhost:8080/TravelDreamWeb/createHotel.xhtml" icon="ui-icon-search" /> 
     <p:menuitem value="MODIFY HOTELS" url="http://localhost:8080/TravelDreamWeb/createExcursion.xhtml" icon="ui-icon-search" /> 
</p:tabMenu> 



<h:form>
<h5 style="font-size:large;">THESE ARE ALL THE PACKAGES</h5>
    </h:form>



<h:form style="font-size:x-small;">
   <p:dataTable id="dataTable1" var="package" value="#{searchBean.packageList}" widgetVar="perListTable"   
           rowKey="#{package.idPackage}"
           selection="#{creationPredefinedPackageBean.selectedPackage}"
           selectionMode="single">
           >
     
        <p:column id="FLIGHT"    
                headerText="FLIGHT" 
                >  
            <h:outputText value="#{package.idBasicProduct1}"/>
          
        </p:column> 
   
        <p:column id="HOTEL"    
                headerText="HOTEL" 
                >  
            <h:outputText value="#{package.idBasicProduct2}"/>
     
        </p:column> 
        
        
         <p:column id="EXCURSION"    
                headerText="EXCURSION" 
                >  
                
            <h:outputText value="#{package.idBasicProduct3}"/>
     
        </p:column> 
        
         <p:column id="TOTALPRICE"    
                headerText="TOTALPRICE" 
                >  
                
            <h:outputText value="#{package.totalPrice}"/>
     
        </p:column> 
        
        <p:column id="DISCOUNT"    
                headerText="DISCOUNT" 
                >  
                
            <h:outputText value="#{package.discount}"/>
     
        </p:column> 
       
         
        <p:column id="employeeCreator"    
                headerText="Employee Creator" 
                >  
                
            <h:outputText value="#{package.employeeCreator}"/>
     
        </p:column> 
       
       
       
    </p:dataTable>  
      
      
        <h:form>
<h3 style="font-size:large;">SELECT A FLIGHT</h3>
    </h:form>
      
      
      <h:form><!-- 1 -->
      
      <p:dataTable id="dataTableExcursion" var="excursion" value="#{searchExcursionBean.excursionsList}" widgetVar="excursionListTable"   
           emptyMessage="No excursions found with given criteria" filteredValue="#{searchExcursionBean.excursionFiltered}"
           rowKey="#{excursion.idbasicproduct}"
           selection="#{creationPredefinedPackageBean.excursionSelected}"
           selectionMode="single">
          
     
        <p:column id="IDBASICPRODUCT" filterBy="idbasicproduct"   
                headerText="ID BASICPRODUCT"
                filterMatchMode="contains"
              
                >  
            <h:outputText value="#{excursion.idbasicproduct}"/>
 
 
       
      
        </p:column> 
          
        <p:column id="EXCURSIONTYPE" filterBy="excursiontype"  
                headerText="EXCURSION TYPE" filterMatchMode="contains" >   
            <h:outputText value="#{excursion.excursiontype}" />  
        </p:column>  
  
       
                
         <p:column id="IDBUYER" filterBy="idbuyer"  
                headerText="ARRIVAL DATE"  filterMatchMode="contains">  
            <h:outputText value="#{excursion.idbuyer}" />  
        </p:column>  
         
        
         <p:column id="LOCALITY" filterBy="locality"  
                headerText="LOCALITY" filterMatchMode="contains">  
            <h:outputText value="#{excursion.locality}" /> 
        </p:column>  
        
        
        
        
          <p:column id="PRICE" filterBy="price"  
                headerText="PRICE"  filterMatchMode="contains">  
            <h:outputText value="#{excursion.price}" />  
        </p:column>     
        
        
        
        
        <p:column id="PROVINCE" filterBy="province"  
                headerText="PROVINCE" filterMatchMode="contains">  
            <h:outputText value="#{excursion.province}" />  
        </p:column>
        
        
        
    
       
        
    </p:dataTable>  
      

 <h:form>  
        
<h:commandButton value=" click to add excursion " action="#{creationPredefinedPackageBean.changeExcursion()}" update="dataTable1" />

</h:form>



</h:form><!-- chiude il forum del Flights --> <!-- 1 -->










</h:form>



</h:body>
	
	
	</html>